package com.luisliuyi.demo.optimize.crash;

import android.widget.Toast;

import com.luisliuyi.lib.crash.ExceptionHandler;
import com.luisliuyi.lib.crash.tool.ToolAppManager;

public class CrashExceptionHandler extends ExceptionHandler {

    @Override
    protected void onUncaughtExceptionHappened(Thread thread, Throwable throwable) {

    }

    @Override
    protected void onBandageExceptionHappened(Throwable throwable) {

    }

    @Override
    protected void onEnterSafeMode() {
        Toast.makeText( ToolAppManager.getAppManager().currentActivity(), "当前功能异常，于2S后重启当前系统，请稍后再试", Toast.LENGTH_SHORT).show();
    }
}
